<!-- 
  - card组件
  - 其实就是uni-card的封装
 -->

<!--
  - 视图层
 -->
<template>
  <!-- 封装uni-card -->
  <uni-card
    :title="props.title"
    :is-full="false"
    :border="true"
    :is-shadow="true"
  >
  <!-- 插槽 -->
  <slot></slot>
  </uni-card>
</template>

<!--
  - 逻辑层
-->
<script setup>
// 接收组件传参
const props = defineProps({
  // section的标题
  title: {
    type: String,
    required: false,
  }
})
</script>

